﻿@page "{id}"
@model RazorPagesExample.Pages.People.DeleteModel
@{
  ViewData["Title"] = "Delete";
}

<h1>Delete</h1>

<h3>Are you sure you want to delete this?</h3>
<div>
  <h4>PersonInfo</h4>
  <hr />
  <dl class="row">
    <dt class="col-sm-2">
      @Html.DisplayNameFor(model => model.Item.Id)
    </dt>
    <dd class="col-sm-10">
      @Html.DisplayFor(model => model.Item.Id)
    </dd>
    <dt class="col-sm-2">
      @Html.DisplayNameFor(model => model.Item.Name)
    </dt>
    <dd class="col-sm-10">
      @Html.DisplayFor(model => model.Item.Name)
    </dd>
  </dl>

  <form asp-action="Delete">
    <input type="submit" value="Delete" class="btn btn-danger" /> |
    <a href="/People/Index">Back to List</a>
  </form>
</div>
